package com.gr100.biz.app.mvc;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by CoderA on 2016/8/5.
 */

public class ApiController {

    public Map parseResult(Map result){
        if(result == null){
            result = new HashMap();
            result.put("errno",-999);
            result.put("code","System Error~");
        }else if(!result.containsKey("errno")){
            result.put("errno",0);
        }
        return result;
    }

}
